package com.ftg.product.exam.vo;

import com.diboot.core.binding.annotation.*;
import com.ftg.product.exam.entity.SysEmpRole;
import com.ftg.product.exam.entity.SysRole;
import com.ftg.product.exam.entity.SysEmployee;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.util.List;

/**
* 员工角色中间表 DetailVO定义
* @author kangjx
* @version 1.0
* @date 2021-01-14
 * Copyright © ftg
*/
@Getter @Setter @Accessors(chain = true)
public class SysEmpRoleDetailVO extends SysEmpRole  {
    private static final long serialVersionUID = -3918870511691247943L;

    /**
    * 关联字段：SysRole.rolename
    */
    @BindField(entity = SysRole.class, field = "rolename", condition = "this.roleid=id")
    private String roleidRolename;

    /**
    * 关联对象：SysRole
    */ 
    @BindEntity(entity = SysRole.class, condition = "this.roleid=id")
    private Long roleid;

    /**
    * 关联字段：SysEmployee.empname
    */
    @BindField(entity = SysEmployee.class, field = "empname", condition = "this.empid=id")
    private String empidEmpname;

    /**
    * 关联对象：SysEmployee
    */ 
    @BindEntity(entity = SysEmployee.class, condition = "this.empid=id")
    private Long empid;

}